<%-- 
    Document   : alterarFilmes
    Created on : 28/03/2013, 21:31:16
    Author     : raphael
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Cadastro de Filmes</title>
    </head>
    <body>
       <h1>Alterar Filmes</h1>
        <jsp:useBean id="bnFilmes" scope="session" class="br.edu.fatecmm.cadastrofilmes.beans.BnFilmes" />
        <jsp:useBean id="bnGenero" scope="session" class="br.edu.fatecmm.cadastrofilmes.beans.BnGenero" />
        <form name="form1" action="/CadastroFilmes/SltFilmes" method="post">
            <table border="0">
                <tbody>
                    <tr>
                        <td>Descrição:</td>
                        <td width="2">&nbsp;</td>
                        <td><input type="text" name="nome" value="${bnFilmes.nome}" size="100" /></td>
                        <td><input type="text" name="genero" value="${bnGenero.descricao}" size="100" /></td>
                        <td><input type="text" name="duracao" value="${bnFilmes.duracao}" size="100" /></td>
                        <td><input type="text" name="ano" value="${bnFilmes.ano}" size="100" /></td>
                    </tr>
                    <tr>
                        <td colspan="3"><input type="button" value="Cancelar" name="btnCancelar" onClick="window.location='/CadastroFilmes/SltFilmes?operacao=listar'" />
                                        <input type="submit" value="Gravar" />
                                        <input type="hidden" name="id" value="${bnFilmes.id}" />
                                        <input type="hidden" name="operacao" value="gravaralteracao" /></td>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
